package com.gxa.uhome.mapper;

import com.gxa.uhome.pojo.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: qingyao
 * @date: 20:26 2021/6/7
 */
public interface AdminMapper {
    List<Admin> getall(Integer page, Integer size);

    List<Admin> select(String role, String realname, Integer page, Integer size);

    Integer resetpwd(Integer id);

    Integer insert(Admin admin);

    Integer insertadd();

    List<Admin> reinsert(Admin admin);

    Integer update(Admin admin);

    List<Admin> reupdate(Admin admin);

    Integer delete(Integer[] id);

    Admin login(Admin admin);

    Integer changepwd(Admin admin);

    Admin selectAdminAndMenuById(@Param("id") Integer id);
}
